﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using MailingSystemWcfServiceRole.Entities;

namespace MailingSystemWcfServiceRole.Services
{
    // NOTE to calvin: here are the services you can call
    [ServiceContract]
    public interface IContactService
    {
        //this service takes a Contact object as parameter, attempt to add it to the DB, and returns if the adding is successful
        [OperationContract]
        [WebInvoke]
        bool AddContact(Contact c);

        //Fuxiang: remember to put the labels
        [OperationContract]
        [WebGet]
        bool ContactExists(string studId);
    }
}
